package com.woniuxy02;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * @author 作者
 * @create 2025-06-09 11:52
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Student implements Comparable<Student> {
    private String id;
    private String name;
    private int age;


    @Override
    public int compareTo(Student o) {
        return this.age - o.age;
    }
}
